package com.taoge.p4.common.rabbit.routingKey;

public enum BrandRoutingKey {
    BRAND_STATUS("brand.status");

    private final String key;

    BrandRoutingKey(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public static BrandRoutingKey getByKey(String key) {
        if (key == null) {
            return null;
        }
        for (BrandRoutingKey value : BrandRoutingKey.values()) {
            if (value.key.equals(key)) {
                return value;
            }
        }
        return null;
    }

}
